package org.mybatis3.test1;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test1 {
    public static void main(String[] args) {
//        HelloSpring helloSpring=new HelloSpring();
        ApplicationContext context=new ClassPathXmlApplicationContext("applicationContext.xml");
        HelloSpring helloSpring= (HelloSpring)context.getBean("helloSpring");
        helloSpring.sayWho();
    }
}
